#include<stdio.h>
#include<stdlib.h>
int main();
int a;
int b=100;
//内存地址
void test01(){
  int c;
  char *add ="hello bit";
  printf("stack is addr:%p\n",&c);//地址向下递减
  int *a = (int*)malloc(100);
  printf("stack is addr:%p\n",&a);
  printf("heap addr:%p\n",a);//地址向上递增
  printf("uninit global value addr:%p\n",&a);
  printf("init global value addr:%p\n",&b);
  printf("readonly value addr:%p",add);
  printf("code addr:%p\n",main);
}
int main()
{
  test01();
  return 0;

}
